/**
 * Copyright (c) 2018 软唐 All rights reserved.
 * <p>
 * https://www.softtown.cn
 * <p>
 * 版权所有，侵权必究！
 */

package com.softtown.modules.security.service.impl;


import com.softtown.common.service.impl.BaseServiceImpl;
import com.softtown.modules.security.dao.SysSmsContentDao;
import com.softtown.modules.security.entity.SysSmsContentEntity;
import com.softtown.modules.security.service.SysSmsContentService;
import org.springframework.stereotype.Service;

/**
 * 描述
 *
 * @param
 * @author Dingyayong
 * @return
 * @date 2019/5/23 17:58
 */
@Service
public class SysSmsContentServiceImpl extends BaseServiceImpl<SysSmsContentDao, SysSmsContentEntity> implements SysSmsContentService {
    /**
     * 描述
     *
     * @param
     * @return
     * @author Dingyayong
     * @date 2019/5/23 17:58
     */
    @Override
    public SysSmsContentEntity getByMobile(String mobile) {
        return baseDao.getByMobile(mobile);
    }

    /**
     * 描述
     *
     * @param
     * @return
     * @author Dingyayong
     * @date 2019/5/23 17:59
     */
    @Override
    public Boolean saveSms(SysSmsContentEntity sysSmsContentEntity) {
        return baseDao.saveSms(sysSmsContentEntity);
    }

    /**
     * 描述
     *
     * @param
     * @return
     * @author Dingyayong
     * @date 2019/5/24 16:19
     */
    @Override
    public Boolean updateSmsCode(SysSmsContentEntity sysSmsContentEntity) {
        return baseDao.updateSmsCode(sysSmsContentEntity);
    }

}